package com.feng.freader.view.sudo.bus;

public enum GameLevel {
	BASE(3), PRIMARY(4), INTERMEDIATE(5), ADVANCED(6);

	private int v;

	private GameLevel(int v) {
		this.v = v;
	}

	public int getV() {
		return v;
	}

	public static GameLevel get(int v) {
		for (GameLevel g : GameLevel.values()) {
			if (g.getV() == v) {
				return g;
			}
		}
		throw new IllegalArgumentException(
				"GameLevel get parameter v is not exists.");
	}
}